package agenda.conector;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class Conector {
  
  private String serverName = "localhost";
  private String user = "root";
  private String password = "12345";
  private String dataBase = "agenda";
  
  

  public Connection getConnection()
      throws SQLException, ClassNotFoundException {
    Class.forName("com.mysql.jdbc.Driver");
    return DriverManager.getConnection("jdbc:mysql://"+serverName+"/"+dataBase, user, password);
  }

}